import json
import os

from config import DIR_NAME


def read_json():
    list_data = []

    # file = "data/ihrm_login.json"
    file = DIR_NAME + os.sep + "data" + os.sep + "tpshop_login.json"
    with open(file, encoding="utf-8") as f:
        data = json.load(f)
        print(data)
        for i in data:
            tmp = tuple(i.values())
            list_data.append(tmp)
    return list_data


if __name__ == '__main__':
    read_json()